package com.prothink.spring.service;

import com.prothink.spring.entity.ClassRoomEntity;

import java.util.List;

/**
 * @author mayanping
 * @title: ClassRoomService
 * @projectName spring-last
 * @description: TODO
 * @date 2024/1/1914:27
 */
public interface ClassRoomService {

    /**
     * 添加班级数据
     * @param classRoomEntity
     */
    public void add(ClassRoomEntity classRoomEntity);

    /**
     * 根据id删除班级数据
     * @param id
     */
    public void deleteById(int id);

    /**
     * 更新班级信息
     * @param classRoomEntity
     */
    public void update(ClassRoomEntity classRoomEntity);

    /**
     * 查询所有班级数据
     */
    public List<ClassRoomEntity> selectAll();

    /**
     * 根据id查询班级数据
     * @param id
     */
    public ClassRoomEntity selectById(int id);

    /**
     * 根据id修改班级中学生的数量
     * @param classId       班级表的id
     * @param studentCount  要修改的学生数量
     */
    public void updateStudentCountById(int classId, int studentCount);
}

